package com.commution.hit.service.impl;

import java.util.ArrayList;

import com.commution.hit.dao.UserDAO;
import com.commution.hit.domain.basic.User;
import com.commution.hit.service.UserService;

public class UserServiceImpl implements UserService {

	/** 
	 * author FanWen
	 * 2015年6月24日	
	 * 
	 */
	
	
	private UserDAO userDAO;
	
	@Override
	public User getUserByID() {
		
	User user=	userDAO.getUserByUsercode("100240310");
	return user;
	 
	}
	@Override
	public  ArrayList<User> getAllUser(){
		
		ArrayList<User> user =userDAO.getAllUser();
		return user;
	};
	
	
	
	
	
	
	public UserDAO getUserDAO() {
		return userDAO;
	}
	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}
	
	
	

}
